/**
 * Copyright 1993-2012 NVIDIA Corporation.  All rights reserved.
 *
 * Please refer to the NVIDIA end user license agreement (EULA) associated
 * with this source code for terms and conditions that govern your use of
 * this software. Any use, reproduction, disclosure, or distribution of
 * this software and related documentation outside the terms of the EULA
 * is strictly prohibited.
 */
#include <stdio.h>
#include <stdlib.h>

#include <thrust/transform_reduce.h>
#include <thrust/functional.h>
#include <thrust/device_vector.h>
#include <thrust/host_vector.h>
#include <cmath>

using namespace std;

int main(void)
{
    thrust::host_vector<float>  *a = new  thrust::host_vector<float> (1000000000);

    thrust::fill(a->begin(), a->end(),1.0);

    cout << "a: " << thrust::reduce(a->begin(), a->end()) << endl;


   /* double j = 0.0;
    for(int i = 0; i < 10000000000; i++)
    {

    	j = j + 1.0;

    }


    cout<<"j: "<<j;*/

    return 0;
}
